package com.wanxi.education.controller;

import com.wanxi.education.common.CommonResult;
import com.wanxi.education.model.vo.user.CUserRegisterVo;
import com.wanxi.education.service.CUserService;
import com.wanxi.education.service.RegisterService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: YanZhengYi
 * @Description:
 * @Date: Created in 2021/9/24
 * @Version: 1.0
 */

@RestController
@Api(tags = "前端注册页面")
public class RegisterController {
    @Autowired
    private RegisterService registerService;
    @PostMapping("/front/CUser/register")
    @ApiOperation("注册")
    public CommonResult register(@RequestBody CUserRegisterVo cUserRegisterVo){
        Integer result = registerService.cRegister(cUserRegisterVo);
        return CommonResult.success("success");
    }
}
